
<?php defined('_JEXEC') or die('Restricted access'); 

	$edit		= JRequest::getVar('edit',true);
	$text = !$edit ? JText::_( 'Thêm mới' ) : JText::_( 'Sửa' );
	JToolBarHelper::title(JText::_( 'Tiềm lực KHCN - Danh sách cơ quan, đơn vị' ).': <small><small>[ ' . $text.' ]</small></small>','plugin.png' );
	JToolBarHelper::save( 'save', 'Lưu' );
	JToolBarHelper::cancel( 'cancel', 'Quay lại' );
	
	$editor =& JFactory::getEditor();
?>

<script language="javascript" type="text/javascript">
	function submitbutton(pressbutton) {
		var form = document.adminForm;
		if (pressbutton == 'cancel') {
			submitform( pressbutton );
			return;
		}
		
		if (document.getElementById('name').value == 0){
			alert( "<?php echo JText::_( 'Bạn chưa nhập Tên cán bộ', true ); ?>" );
		} else {
			submitform( pressbutton );
		}	
	}
	
</script>
<style type="text/css">
	table.paramlist td.paramlist_key {
/*		width: 92px;
*/		text-align: left;
		height: 30px;
	}

</style>

<form action="index.php" method="post" name="adminForm" id="adminForm" >
<div>
	<fieldset class="adminform">
		<legend><?php echo JText::_( 'Thông tin chung' ); ?></legend>

		<table class="admintable">
		<tr>
			<td align="right" class="key"><?php echo JText::_( 'Hiển thị' ); ?>:</td>
			<td width="500">
				<?php echo $this->lists['published']; ?>
			</td>
		</tr>	
		<tr>
			<td align="right" class="key"><?php echo JText::_( '.Tên cơ quan chủ quản' ); ?>:</td>
			<td width="500">
				<?php echo $this->lists['category']; ?>
			</td>
		</tr>
		<tr>
			<td align="right" class="key"><?php echo JText::_( '.Thuộc khối cơ quan' ); ?>:</td>
			<td width="500">
				<?php echo $this->lists['special']; ?>
			</td>
		</tr>
		<tr>
			<td align="right" class="key"><?php echo JText::_( '.Cơ quản quản lý trực tiếp' ); ?>:</td>
			<td width="500">	
				<textarea class="text_area" name="boss" id="boss" cols="80" rows="2"><?php echo $this->item->boss;?></textarea>
			</td>
		</tr>	
		<tr>
			<td align="right" class="key"><?php echo JText::_( '.Tên cơ quan' ); ?>:</td>
			<td width="500">	
				<input class="text_area" type="text" name="name" id="name" size="55" value="<?php echo $this->item->name;?>" />	
			</td>
		</tr>
		<tr>
			<td align="right" class="key"><?php echo JText::_( '.Tên (Tiếng Anh)' ); ?>:</td>
			<td width="500">	
				<input class="text_area" type="text" name="name_en" id="name_en" size="55" value="<?php echo $this->item->name_en;?>" />	
			</td>
		</tr>		
		<tr>
			<td align="right" class="key"><?php echo JText::_( '.Địa chỉ' ); ?>:</td>
			<td width="500">	
				<input class="text_area" type="text" name="address" id="address" size="55" value="<?php echo $this->item->address;?>" />
			</td>
		</tr>			
		<tr>
			<td align="right" class="key"><?php echo JText::_( '.Số điện thoại/fax' ); ?>:</td>
			<td width="500">
				<input class="text_area" type="text" name="phone" id="phone" size="55" value="<?php echo $this->item->phone;?>" />
			</td>
		</tr>
		<tr>
			<td align="right" class="key"><?php echo JText::_( '.Email / website' ); ?>:</td>
			<td width="500">
				<input class="text_area" type="text" name="email" id="email" size="55" value="<?php echo $this->item->email;?>" />
			</td>
		</tr>				
		<tr>
			<td align="right" class="key" valign="top"><?php echo JText::_( '2. Chức năng, nhiệm vụ ' ); ?>:</td>
			<td width="500">
				<?php
					echo $editor->display('function', $this->item->function, '750', '200', '180', '50', true, array('pagebreak', 'readmore'));
				?>
			</td>
		</tr>
		<tr>
			<td align="right" class="key" valign="top"><?php echo JText::_( '3. Cơ cấu tổ chức và cán bộ' ); ?>:</td>
			<td width="500" class="hide-docman">
				<?php
					echo $editor->display('people', $this->item->people, '750', '200', '180', '50', false, array('pagebreak', 'readmore'));
				?>
			</td>
		</tr>
		<tr>
			<td align="right" class="key"><?php echo JText::_( '4. Số lượng cán bộ' ); ?>:</td>
			<td width="500" class="hide-docman">
				<input class="text_area" type="text" name="staffs" id="staffs" size="55" value="<?php echo $this->item->staffs;?>" />
			</td>
		</tr>
				
		<tr>
			<td align="right" class="key" valign="top"><?php echo JText::_( '5. Trang thiết bị lớn đã được đầu tư' ); ?>:</td>
			<td width="500" class="hide-docman">	
				<?php
					echo $editor->display('equipment', $this->item->equipment, '750', '200', '180', '50', false, array('pagebreak', 'readmore'));
				?>
			</td>
		</tr>
		<tr>
			<td align="right" class="key" valign="top"><?php echo JText::_( '6. Năng lực nghiên cứu, triển khai ứng dụng' ); ?>:</td>
			<td width="500" class="hide-docman">				
				<?php
					echo $editor->display('ability', $this->item->ability, '750', '200', '180', '50', false, array('pagebreak', 'readmore'));
				?>
			</td>
		</tr>
		<tr>
			<td align="right" class="key" valign="top"><?php echo JText::_( '7. Đào tạo trên đại học về KHCN vũ trụ' ); ?>:</td>
			<td width="500" class="hide-docman">				
				<?php
					echo $editor->display('education', $this->item->education, '750', '200', '180', '50', false, array('pagebreak', 'readmore'));
				?>	
			</td>
		</tr>
		<tr>
			<td align="right" class="key" valign="top"><?php echo JText::_( '7. Năng lực hợp tác quốc tế về KHCN vũ trụ' ); ?>:</td>
			<td width="500" class="hide-docman">
				<?php
					echo $editor->display('foreign', $this->item->foreign, '750', '200', '180', '50', false, array('pagebreak', 'readmore'));
				?>
			</td>
		</tr>
		<tr>
			<td align="right" class="key" valign="top"><?php echo JText::_( '8. Các đề xuất của đơn vị  để phát triển tiềm lực KHCN vũ trụ' ); ?>:</td>
			<td width="500" class="hide-docman">
				<?php
					echo $editor->display('ideal', $this->item->ideal, '750', '200', '180', '50', false, array('pagebreak', 'readmore'));
				?>
			</td>
		</tr>
	</table>
	</fieldset>
</div>

<div class="clr"></div>
	<input type="hidden" name="option" value="com_organization" />
	<input type="hidden" name="cid[]" value="<?php echo $this->item->id; ?>" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="view" value="organization" />
	<?php echo JHTML::_( 'form.token' ); ?>
</form>